home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / amos / amoslist.lzh / AMOSLIST / 000025_amos-request@svcs1.digex.net_Sat Sep 2 10:12:50 1995.msg < prev    next >
Internet Message Format  |  1995-10-02  |  3KB

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224]) by mail1.access.digex.net (8.6.12/8.6.12) with ESMTP id KAA10641;  for  ; Sat, 2 Sep 1995 10:12:49 -0400
  2. Received: (from daemon@localhost) by svcs1.digex.net (8.6.12/8.6.12) id IAA26680 for amos-out; Sat, 2 Sep 1995 08:58:33 -0400
  3. Received: from mail1.access.digex.net (mail1.access.digex.net [205.197.247.2]) by svcs1.digex.net (8.6.12/8.6.12) with ESMTP id IAA26677 for <amos-list@svcs1.digex.net>; Sat, 2 Sep 1995 08:58:31 -0400
  4. Received: from disperse.demon.co.uk (disperse.demon.co.uk [158.152.1.77]) by mail1.access.digex.net (8.6.12/8.6.12) with SMTP id IAA06152;  for <amos-list@access.digex.net> ; Sat, 2 Sep 1995 08:58:28 -0400
  5. Received: from post.demon.co.uk by disperse.demon.co.uk id aa23775;
  6.           2 Sep 95 13:58 +0100
  7. Received: from westmead.demon.co.uk by post.demon.co.uk id aa21865;
  8.           2 Sep 95 13:55 +0100
  9. From: Mark Carter <Mark@westmead.demon.co.uk>
  10. To: amos-list@access.digex.net
  11. Date:          Fri, 1 Sep 1995 20:14:47 +0000
  12. Subject:       Re: Wishlist for Amos
  13. Priority: normal
  14. X-mailer: Pegasus Mail/Windows (v1.22)
  15. Message-ID:  <9509021355.aa21865@post.demon.co.uk>
  16. Status: RO
  17. X-Status: 
  18.  
  19. > In a message dated Sun 27 Aug 95  6:16, Mark Carter 
  20. <Mark@westmead.demon.co.uk> wrote:
  21. > > 2) A way of making radio buttons (interface language) unselectable if
  22. > it's
  23. > > the only one pressed. For example you can deselect radio buttons by
  24. > > clicking on it again.
  25. > > Darryl
  26. >  MCM> There is an easy way round this (although not ideal).  The button 
  27. >  MCM> definition below should explain it:
  28. >  MCM> BU1,xpos,ypos,xsize,ysize,startval,0,1;[UN0,0,imageBP+;][BC1,0;BR1;]
  29. >  MCM> and repeat for other radio buttons...
  30. > No, that's not it. You can still deselect all radio buttons. There should
  31. > be a way of only deselecting a button if another is pressed.
  32. > Darryl
  33.  
  34. Oh yes it does ;-)...
  35. ... or maybe, on the other hand, we have our wires crossed.
  36.  
  37. I assume you want a group of buttons where only one
  38. can be selected at once - no more, no less.  If this is the 
  39. case then the above code WILL work - if you click on the selected 
  40. button, it will temporarily become deselected and then return to its 
  41. selected state as soon as the mouse button is released.  (IMHO this 
  42. temporary deselection of the button is important to let the user know 
  43. that his click on the button has been registered).
  44. [The "BR1" bit does this part]
  45.  
  46. However, if you want any number (except none) of the buttons
  47. to be selected then it is more complicated, but by no means 
  48. impossible:
  49.  
  50. If you begin with x buttons selected then set 0VA to the 
  51. value x (do this when buttons are defined).
  52. Then configure each button so that:
  53. 1. If a deselected button is clicked on then increase 0VA by 1 and
  54.    select the button
  55. 2. If a selected button is clicked on, AND
  56. if   a) 0VA is greater than 1 (it must be at least 1 because at least 
  57.         this button is selected) then decrease 0VA by 1 and deselect 
  58.         the button
  59. else   b) (0VA equals 1) then do nothing - this must be the last 
  60. button selected.
  61.  
  62. In fact, this method could be adapted so that at least y 
  63. buttons remain selected (where y <= x).
  64.  
  65. The End.
  66.  
  67. Cheers,
  68.  
  69. Mark